package top.jojoace.JPA.model_DDL.BaseEntity;

import top.jojoace.demo.POJO.User;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.UUID;

@Entity
public class Base2Entity {


    private UUID uuid;

    private UUID owner;

    @Id
    @Column(name = "uuid")
    public UUID getUuid() {
        return this.uuid;
    }

    public void setUuid(UUID newOwner) {
        this.uuid = newOwner;
    }

    @Basic(optional = false)//声明为基础类型
    @Column(name = "owner")
    public UUID getOwner() {
        return this.owner;
    }

    public void setOwner(UUID owner) {
        this.owner = owner;
    }
}
